package com.ybkj.chat.module.mine.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.ybkj.chat.R;
import com.ybkj.chat.base.BaseMvpActivity;
import com.ybkj.chat.module.mine.presenter.PursePresenter;
import com.ybkj.chat.module.mine.view.PurseView;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * @author yyj
 * @create 2019-02-12 10:23
 * @Describe :我的钱包
 */
public class PurseActivity extends BaseMvpActivity<PursePresenter> implements PurseView {
    @Override
    protected void injectPresenter() {

    }

    @Override
    protected void initTitle() {
        setTitleText("我的钱包");
        setRightText("记录");
        setRightTextColor(R.color.color_dfd);
        setRightTextVisible(true);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_purse;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick({R.id.tv_recharge, R.id.tv_withdraw, R.id.head_right_text, R.id.lnl_circle_coin, R.id.lnl_gift_income})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_recharge:
                startActivity(new Intent(this, RechargeActivity.class));
                break;
            case R.id.tv_withdraw:
                startActivity(new Intent(this, WithdrawActivity.class));
                break;
            case R.id.head_right_text:
                startActivity(new Intent(this, ChargeRecordActivity.class));
                break;
            case R.id.lnl_circle_coin:
                startActivity(new Intent(this, CircleCoinActivity.class));
                break;
            case R.id.lnl_gift_income:
                startActivity(new Intent(this, GiftIncomeActivity.class));
                break;

        }
    }
}
